//
//  MyView.h
//  Dispatch
//
//  Created by hyeyeon on 14. 1. 14..
//  Copyright (c) 2014년 hyeyeon. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "AppDelegate.h"
#import "ListCell.h"
#import "ViewController.h"
#import "PopupView.h"
#import "CommonView.h"

@class AppDelegate;
@interface MyView : UIView <UITableViewDataSource, UITableViewDelegate, UIWebViewDelegate>
{
    CGRect myRect;
    AppDelegate *appDelegate;
    
    UIView *segmentView; //팔로우, 관심이슈, 설정 선택버튼
    UITableView *followTable;
    UITableView *issueTable;
    UITableView *settingTable;
    
    
    
    
    
    
    //네트워크
    BOOL duringNetwork;
    NSInteger networkIndex; //1:팔로우, 2:관심이슈, 3:설정
    NSInteger currentPage;
    BOOL isEnd;
    
    //팔로우
    NSMutableArray *selectArray;
    
    
    //크래딧
    CommonView *creditView;
    CommonView *noticeView; //공지사항
}
@property (nonatomic, strong) NSMutableData *responseData;
@property (nonatomic, retain) NSMutableArray *selectArray;
@property (nonatomic, retain) NSMutableArray *followList;   //팔로우리스트
@property (nonatomic, retain) NSMutableArray *issueArray;   //관심이슈리스트

@property (nonatomic, retain) UIImage *noticeNewIcon;
@property (nonatomic, retain) NSString *imageURL;

@property (nonatomic, retain) UIButton *followButton;
@property (nonatomic, retain) UIButton *issueButton;
@property (nonatomic, retain) UIButton *settingButton;


-(void)settingButtonAction:(id)sender;
-(void)unfollowClick:(id)sender;
-(void)appearView;
-(void)notiYes:(BOOL)yn onType:(NSInteger)index;    //노티수신여부
-(void)appearNoticeView;

//요청
-(void)requestFollowList;
-(void)requestInterestIssueWithPage:(NSInteger)page;
-(void)requestCheckNotice;

@end
